package com.example.trb.util.result;


public enum EduReturnCode implements ReturnCode {
    USER_NOT_EXIST(UserReturnCode.USER_NOT_EXIST.code, "添加学历的用户不存在"),
    TOO_MANY(SysReturnCode.BAD_REQUEST.code, "学历太多了");

    final Integer code;
    final String message;

    EduReturnCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
